package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Clazz;
import com.itheima.pojo.ClazzQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 班级持久层接口
 * @author GY
 * @version V1.0
 * @date 2025-01-09 20:06
 */
@Mapper
public interface ClazzMapper {

    //查询
    List<Clazz> findAll();

    void delete(@Param("id") Integer id);

    void insert(Clazz clazz);

    Clazz findById(Integer id);

    void update(Clazz clazz);

    Page<Clazz> pageQuery(ClazzQueryParam clazzQueryParam);
}
